import type { RouteRecordRaw } from "vue-router";

const routes: RouteRecordRaw[] = [
  {
    path: "/",
    name: "layout",
    component: () => import("@/views/layout.vue"),
    meta: {
      title: "家悦行·家庭汽车幸福启航",
    },
    children: [
      {
        path: "",
        name: "home",
        component: () => import("@/views/home/index.vue"),
        meta: {
          title: "首页",
        },
      },
      {
        path: "/order",
        name: "order",
        component: () => import("@/views/order/index.vue"),
        meta: {
          title: "订单",
        },
      },
      {
        path: "/vip",
        name: "vip",
        component: () => import("@/views/vip/index.vue"),
        meta: {
          title: "会员",
        },
      },
      {
        path: "/nextshift",
        name: "nextshift",
        component: () => import("@/views/nextshift/index.vue"),
        meta: {
          title: "交班",
        },
      },
    ],
  },
  {
    path: "/login",
    name: "login",
    component: () => import("@/views/login/index.vue"),
    meta: {
      title: "登录",
      not_check: true,
    },
  },
];

export default routes;
